##other

set_property PACKAGE_PIN D4 [get_ports sys_clk]
set_property IOSTANDARD LVCMOS33 [get_ports sys_clk]

##XADC
#set_property PACKAGE_PIN P3 [get_ports vp_in]					
#set_property IOSTANDARD LVCMOS33 [get_ports vp_in]
#set_property PACKAGE_PIN P5 [get_ports vn_in]					
#set_property IOSTANDARD LVCMOS33 [get_ports vn_in]

##XADC---CH1---C1---B1
set_property PACKAGE_PIN C1 [ get_ports vauxp7 ]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxp7 ]
set_property PACKAGE_PIN B1 [ get_ports vauxn7 ]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxn7 ]

##XADC---CH2---C3---C2
set_property PACKAGE_PIN C3 [ get_ports vauxp8 ]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxp8 ]
set_property PACKAGE_PIN C2 [ get_ports vauxn8 ]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxn8 ]



set_property PACKAGE_PIN E2 [ get_ports vauxp12 ]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxp12 ]
set_property PACKAGE_PIN D1 [ get_ports vauxn12]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxn12]
set_property PACKAGE_PIN B2 [ get_ports vauxp14]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxp14 ]
set_property PACKAGE_PIN A2 [ get_ports vauxn14]
set_property IOSTANDARD LVCMOS33 [ get_ports vauxn14 ]

##UART
set_property PACKAGE_PIN F12 [get_ports txd]					
set_property IOSTANDARD LVCMOS33 [get_ports txd]
set_property PACKAGE_PIN F13 [get_ports rxd]					
set_property IOSTANDARD LVCMOS33 [get_ports rxd]

##Buttons
set_property PACKAGE_PIN K3 [get_ports {row[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {row[0]}]
set_property PACKAGE_PIN M6 [get_ports {row[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {row[1]}]
set_property PACKAGE_PIN P10 [get_ports {row[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {row[2]}]
set_property PACKAGE_PIN R10 [get_ports {row[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {row[3]}]


set_property PACKAGE_PIN R12 [get_ports {col[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {col[0]}]
set_property PACKAGE_PIN T12 [get_ports {col[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {col[1]}]
set_property PACKAGE_PIN R11 [get_ports {col[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {col[2]}]
set_property PACKAGE_PIN T10 [get_ports {col[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {col[3]}]
set_property PULLDOWN true [get_ports {col[3]}]
set_property PULLDOWN true [get_ports {col[2]}]
set_property PULLDOWN true [get_ports {col[1]}]
set_property PULLDOWN true [get_ports {col[0]}]
## Switches
set_property PACKAGE_PIN T9 [get_ports {sw[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[0]}]
set_property PACKAGE_PIN T8 [get_ports {sw[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[1]}]
set_property PACKAGE_PIN T7 [get_ports {sw[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[2]}]
set_property PACKAGE_PIN R6 [get_ports {sw[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[3]}]
set_property PACKAGE_PIN P6 [get_ports {sw[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[4]}]
set_property PACKAGE_PIN R5 [get_ports {sw[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[5]}]
set_property PACKAGE_PIN P4 [get_ports {sw[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[6]}]
set_property PACKAGE_PIN R3 [get_ports {sw[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[7]}]
set_property PACKAGE_PIN R2 [get_ports {sw[8]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[8]}]
set_property PACKAGE_PIN N4 [get_ports {sw[9]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[9]}]
set_property PACKAGE_PIN H4 [get_ports {sw[10]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[10]}]
set_property PACKAGE_PIN F3 [get_ports {sw[11]}]
set_property IOSTANDARD LVCMOS33 [get_ports {sw[11]}]



#7 segment display
set_property PACKAGE_PIN P11 [get_ports {seg[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[0]}]
set_property PACKAGE_PIN N12 [get_ports {seg[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[1]}]
set_property PACKAGE_PIN L14 [get_ports {seg[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[2]}]
set_property PACKAGE_PIN K13 [get_ports {seg[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[3]}]
set_property PACKAGE_PIN K12 [get_ports {seg[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[4]}]
set_property PACKAGE_PIN P13 [get_ports {seg[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[5]}]
set_property PACKAGE_PIN M14 [get_ports {seg[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[6]}]
set_property PACKAGE_PIN L13 [get_ports {seg[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {seg[7]}]
    set_property PACKAGE_PIN V7 [get_ports dp]
        set_property IOSTANDARD LVCMOS33 [get_ports dp]

set_property PACKAGE_PIN G12 [get_ports {an[0]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[0]}]
set_property PACKAGE_PIN H13 [get_ports {an[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[1]}]
set_property PACKAGE_PIN M12 [get_ports {an[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[2]}]
set_property PACKAGE_PIN N13 [get_ports {an[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[3]}]
set_property PACKAGE_PIN N14 [get_ports {an[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[4]}]
set_property PACKAGE_PIN N11 [get_ports {an[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {an[5]}]


##led
set_property PACKAGE_PIN P9 [get_ports {led[0]}]
set_property PACKAGE_PIN R8 [get_ports {led[1]}]
set_property PACKAGE_PIN R7 [get_ports {led[2]}]
set_property PACKAGE_PIN T5 [get_ports {led[3]}]
set_property PACKAGE_PIN N6 [get_ports {led[4]}]
set_property PACKAGE_PIN T4 [get_ports {led[5]}]
set_property PACKAGE_PIN T3 [get_ports {led[6]}]
set_property PACKAGE_PIN T2 [get_ports {led[7]}]
set_property PACKAGE_PIN R1 [get_ports {led[8]}]
set_property PACKAGE_PIN G5 [get_ports {led[9]}]
set_property PACKAGE_PIN H3 [get_ports {led[10]}]
set_property PACKAGE_PIN E3 [get_ports {led[11]}]

set_property IOSTANDARD LVCMOS33 [get_ports {led[11]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[10]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[9]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[8]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[7]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[6]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[5]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[4]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[3]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[2]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[1]}]
set_property IOSTANDARD LVCMOS33 [get_ports {led[0]}]

#VGA Connector
set_property PACKAGE_PIN F5 [get_ports {vgaRed[0]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaRed[0]}]
set_property PACKAGE_PIN F4 [get_ports {vgaRed[1]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaRed[1]}]
set_property PACKAGE_PIN M16 [get_ports {vgaRed[2]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaRed[2]}]
set_property PACKAGE_PIN M15 [get_ports {vgaRed[3]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaRed[3]}]
set_property PACKAGE_PIN R16 [get_ports {vgaBlue[0]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaBlue[0]}]
set_property PACKAGE_PIN T15 [get_ports {vgaBlue[1]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaBlue[1]}]
set_property PACKAGE_PIN P14 [get_ports {vgaBlue[2]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaBlue[2]}]
set_property PACKAGE_PIN T14 [get_ports {vgaBlue[3]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaBlue[3]}]
set_property PACKAGE_PIN N16 [get_ports {vgaGreen[0]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaGreen[0]}]
set_property PACKAGE_PIN P15 [get_ports {vgaGreen[1]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaGreen[1]}]
set_property PACKAGE_PIN P16 [get_ports {vgaGreen[2]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaGreen[2]}]
set_property PACKAGE_PIN R15 [get_ports {vgaGreen[3]}]				
	set_property IOSTANDARD LVCMOS33 [get_ports {vgaGreen[3]}]
set_property PACKAGE_PIN R13 [get_ports Hsync]						
	set_property IOSTANDARD LVCMOS33 [get_ports Hsync]
set_property PACKAGE_PIN T13 [get_ports Vsync]						
	set_property IOSTANDARD LVCMOS33 [get_ports Vsync]

#set_property PACKAGE_PIN H2 [get_ports DAC_CS]
#set_property PACKAGE_PIN H1 [get_ports DAC_WR]
#set_property PACKAGE_PIN J3 [get_ports DACAB]
#set_property PACKAGE_PIN J1 [get_ports {DAC_DATA[7]}]
#set_property PACKAGE_PIN K2 [get_ports {DAC_DATA[6]}]
#set_property PACKAGE_PIN K1 [get_ports {DAC_DATA[5]}]
#set_property PACKAGE_PIN L3 [get_ports {DAC_DATA[4]}]
#set_property PACKAGE_PIN E1 [get_ports {DAC_DATA[3]}]
#set_property PACKAGE_PIN F2 [get_ports {DAC_DATA[2]}]
#set_property PACKAGE_PIN G2 [get_ports {DAC_DATA[1]}]
#set_property PACKAGE_PIN G1 [get_ports {DAC_DATA[0]}]

#set_property IOSTANDARD LVCMOS33 [get_ports DAC_CS]
#set_property IOSTANDARD LVCMOS33 [get_ports DAC_WR]
#set_property IOSTANDARD LVCMOS33 [get_ports DACAB]

#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[0]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[1]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[2]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[3]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[4]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[5]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[6]} ]
#set_property IOSTANDARD LVCMOS33 [get_ports {DAC_DATA[7]} ]
